package com.envper.common.domain.dto;

import com.alibaba.fastjson2.annotation.JSONField;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class UserDto {
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    private String nickname;

    private String username;

    private String password;

    private String email;

    private String phone;

    private String avatar;

    private String sex;

    private RoleDto role;

    @JSONField(serialize = false)
    private Integer deleted;

    @JSONField(serialize = false)
    private Integer status;

    private String roleCode;
}
